html,
body,
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.tabler-icon {
  width: 18px;
  height: 18px;
}

math-field::part(virtual-keyboard-toggle),
math-field::part(menu-toggle) {
  display: none;
}

.mantine-Checkbox-input,
.mantine-Checkbox-label {
  cursor: pointer;
}

code[data-kind="typstCode"] {
  border: 1px solid pink;
}

math-field {
  background-color: transparent;
  color: var(--mantine-color-blue-7);
}

.math-block {
  text-align: center;
  font-size: 20px;
}
.math-block math-field:empty {
  padding-right: 7.5px;
  padding-left: 7.5px;
}
.math-inline {
  display: inline-block;
}
.math-inline math-field:empty {
  padding-right: 5px;
  padding-left: 5px;
}

math-field:not(:empty) {
  border: none;
}

math-field::part(container) {
  padding: 0px;
}

.status-bar * {
  user-select: none;
}

.status-bar-item {
  display: flex;
  align-items: center;
}

.italic {
  font-style: italic;
}

.underline {
  text-decoration: underline;
}

.strikethrough {
  text-decoration: line-through;
}

.underline.strikethrough {
  text-decoration: underline line-through;
}

math-field::part(content) {
  padding: 2px;
}

.editor {
  height: 100%;
}

.editor:focus {
  outline: none !important;
}

.editor blockquote {
  margin: 0px;
  padding-right: 10px;
  border-right: 1px solid var(--tab-border-color);
  opacity: 0.6;
}

.editor .code {
  display: block;
  direction: ltr;
  background: #181818;
  color: white;
  border-radius: 10px;
  padding: 10px;
}

.editor .typst-code {
  display: inline-block;
  padding: 5px;
  border-radius: 5px;
  background-color: #181818;
}

.editor .typst-code:empty {
  padding-left: 7.5px;
  padding-right: 7.5px;
}

.editor table td,
.editor table th,
.editor table {
  border: 1px solid var(--tab-border-color);
  border-collapse: collapse;
}

.editor table th {
  text-align: initial;
}

.editor table {
  width: 100%;
  table-layout: fixed;
}

.toolbar-control .tabler-icon {
  stroke-width: 1.25;
}

li:has(ol),
li:has(ul) {
  list-style-type: none;
}

.editor .function-call {
  border: 1px solid var(--tab-border-color);
  border-radius: 5px;
}

.editor .function-call.inline {
  display: inline-block;

  padding-right: 5px;
  padding-left: 5px;
}

.editor .function-call.block {
  display: flex;
  flex-direction: column;
}

.editor .function-call.block > span {
  text-align: center;
  border-bottom: 1px solid var(--tab-border-color);
}

.editor .function-call.block .editor:not(:last-child) {
  border-bottom: 1px solid var(--tab-border-color);
}

.editor .function-call > span {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.editor .function-call.block > .editor {
  padding-inline: 5px;
}

.editor .function-call.inline > .editor {
  display: inline-block;
  padding-inline-start: 5px;
  margin-inline-start: 5px;
}

.editor :dir(rtl) > .function-call > div {
  border-right: 1px solid var(--tab-border-color);
}

.editor :dir(ltr) > .function-call > div {
  border-left: 1px solid var(--tab-border-color);
}

.mantine-Switch-track {
  cursor: pointer;
}
